package com.sky.loveshop.mapper;

import com.sky.loveshop.entity.OrderInfo;
import com.sky.loveshop.entity.qo.OrderInfoQO;
import com.sky.loveshop.entity.vo.OrderInfoVO;
import com.sky.loveshop.utils.MyMapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OrderInfoMapper extends Mapper<OrderInfo> {

    List<OrderInfoVO> searchAll(OrderInfoQO orderInfoQO);

    Integer updateOrderInfoById(OrderInfo orderInfo);

    Integer insertOne(OrderInfo orderInfo);

    List<OrderInfo> getOrderInfoListByIds(@Param("ids") List<Integer> ids);

    void updateOrderQueryTimes(@Param("orderNo") String orderNo);

    List<OrderInfo> getUnPayOrderList();

}